package cn.lyh.edu.repository;

import cn.lyh.edu.domain.EduTeacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 教师持久层
 * @author Administrator
 */
public interface EduTeacherRepository extends JpaRepository<EduTeacher, Long>, JpaSpecificationExecutor<EduTeacher> {

    /**
     * 根据教师号查找记录
     * @param teacherNo
     * @return
     */
    EduTeacher findByTeacherNo(Integer teacherNo);
}